<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Login Page</title>
<script> if(self!=top){ window.open(self.location,'_top'); } </script>
<link rel="stylesheet" href="private.css" type="text/css" />
</head>

<script type="text/javascript">
function validate()
{
    if (document.form.username.value.trim() != "admin") {
        //alert("Wrong User name");
		self.location="wrongusername.html";
		//document.write("Wrong Username.");
        document.form.username.focus();
        return false;


    }
	else
	{
		if (document.form.password.value.trim() != "admin") {
			//alert("Wrong Password");
			//document.write("Wrong Password.");
			//document.form.username.focus();
			self.location="wrongpassword.html";
			return false;
		}
		else
		{
			self.location="main.html";
			return false;
		}
	}


}
</script>		  


<body>
	<br><br><br>
	  <form action="" method="post" name="form" id="form" onsubmit="return validate(this);">
	<table border=0 cellspacing=1 align=center class=form>
	<tr>
		<th colspan="2">Zens Web Demo</th>
	</tr>
     	  <tr>
  <td align="right" width="45%">User name:</td>
  <td><input type="text" name="username" value="" size="20" maxlength="40"/>  </td>
  </tr>
       	  <tr>
  <td align="right">Password:</td>
  <td><input type="password" name="password" value="" size="20" maxlength="40"/>  </td>
  </tr>
  <tr>
    <td colspan="2" align="center" height='30'>
  <input type="submit" name="update" value="Login"/>

  </td>  </form>
    </tr>
	</table>

</body>
</noframes></html>
